﻿namespace Agile.Service.Admin.Model.ViewModel.Sys
{
    public class QueryPageSysUserResponse
    {
        ///<summary>用户ID</summary>
        public long UserID { get; set; }

        ///<summary>昵称</summary>
        public string RealName { get; set; }

        ///<summary>用户名</summary>
        public string UserName { get; set; }

        ///<summary>是否启用</summary>
        public bool Enabled { get; set; }

        ///<summary>手机号</summary>
        public string Phone { get; set; }

        ///<summary>邮箱</summary>
        public string Email { get; set; }

        ///<summary>备注</summary>
        public string Remark { get; set; }

        ///<summary>所属部门ID</summary>
        [SugarColumn(IsJson = true)]
        public List<long> DepartmentIDs { get; set; }

        ///<summary>岗位ID</summary>
        [SugarColumn(IsJson = true)]
        public List<long> PositionIDs { get; set; }

        ///<summary>角色ID</summary>
        [SugarColumn(IsJson = true)]
        public List<long> RoleIDs { get; set; }

        ///<summary>所属角色</summary>
        public string[] RoleList { get; set; }

        ///<summary>所属部门</summary>
        public string[] DepartmentList { get; set; }

        ///<summary>岗位</summary>
        public string[] PositionList { get; set; }

        ///<summary>创建时间</summary>
        public DateTime CreateTime { get; set; }
    }

    public class GetValidatedInfoModel
    {
        ///<summary>用户ID</summary>
        public long UserID { get; set; }

        ///<summary>昵称</summary>
        public string RealName { get; set; }

        ///<summary>用户名</summary>
        public string UserName { get; set; }

        ///<summary>认证状态</summary>
        public int Status { get; set; }

        ///<summary>认证版本</summary>
        public string ValidationVersion { get; set; }
    }

    public class GetUserInfoResponse
    {
        ///<summary>用户ID</summary>
        public long UserID { get; set; }

        ///<summary>昵称</summary>
        public string RealName { get; set; }

        ///<summary>用户名</summary>
        public string UserName { get; set; }
    }

    public class GetUserResponse
    {
        ///<summary>用户ID</summary>
        public long UserID { get; set; }

        ///<summary>昵称</summary>
        public string RealName { get; set; }

        ///<summary>所属部门ID</summary>
        public List<long> DepartmentIDs { get; set; }

        public List<string> DepartmentList { get; set; }

        ///<summary>岗位ID</summary>
        public List<long> PositionIDs { get; set; }

        public List<string> PositionList { get; set; }

        ///<summary>角色ID</summary>
        public List<long> RoleIDs { get; set; }

        public List<string> RoleList { get; set; }

        ///<summary>是否启用</summary>
        public bool Enabled { get; set; }

        ///<summary>手机号</summary>
        public string Phone { get; set; }

        ///<summary>邮箱</summary>
        public string Email { get; set; }

        ///<summary>备注</summary>
        public string Remark { get; set; }

        ///<summary>创建时间</summary>
        public DateTime CreateTime { get; set; }
    }

    public class WxAppletLoginResponse : LoginResponse
    {
        ///<summary>是否绑定账号</summary>
        public bool IsBindAccount { get; set; } 
    }
}
